<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/webpage/common/taglibs.jspf"%>
<!DOCTYPE html>
<html>
<head>
    <title><spring:message code="sys.skill.name" /></title>
    <meta name="decorator" content="form"/>
    <html:css name="bootstrap-fileinput" />
    <html:css name="simditor" />
</head>

<body class="white-bg"  formid="impModelForm">
    <form:form id="impModelForm" modelAttribute="data" method="post" action="null" class="form-horizontal" >
		<table  class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
		   <tbody>
		   		<tr>
			         <td  class="width-15 active text-right">	
			              <label><font color="red">*</font>模型名称:</label>
			         </td>
			         <td class="width-35" >
			             <form:input path="modelName" class="form-control " datatype="*" nullmsg="请填写模型名称！" htmlEscape="false" />
			             <label class="Validform_checktip"></label>
			         </td>
			         <td  class="width-15 active text-right">	
			          	<label><font color="red">*</font>模型类型:</label>
			         </td>
			         <td  class="width-35" >
			             <form:treeselect title="请选择上级流程类型表" path="modelType" datatype="*" nullmsg="请选择模型类型！"
			             dataUrl="${adminPath}/workflow/actretype/treeData" labelName="parentname" labelValue="${parentname}"/>
			             <label class="Validform_checktip"></label>
			         </td>
			    </tr>
			    <tr>
			         <td  class="width-15 active text-right">	
			              <label>备注:</label>
			         </td>
			         <td class="width-35" colspan="3" >
			              <form:textarea path="discription" htmlEscape="false" rows="3" maxlength="200" class="form-control "/>
			         </td>
			    </tr>
		  		<tr>
		  			<td  class="width-15 active text-right">	
			              <label>流程模板:</label>
			         </td>
					<td class="width-35" colspan="3">
						<form:fileinput buttonText="选择模板" extend="bpmn20.xml" saveType="billId" uploadUrl="${adminPath}/activiti/deploy/import/model"  isFormSubmit="true" 
						uploadExtraFieldData="modelName,modelType,discription" fileActionSettings="{showRemove: true,showUpload: false}"
						showUpload="false" showRemove="false" autoUpload="false" nested="false" fileInputWidth="100px"  fileInputHeight="100px"  
						path="remarks" htmlEscape="false" class="form-control"  multiple="false"    />
					</td>
				</tr>		      
		   </tbody>
		</table>   
	</form:form>
<html:js name="bootstrap-fileinput" />
<html:js name="simditor" />
</body>
<!-- 全局js -->
<html:js name="iCheck,Validform,markdown,syntaxhighlighter" />
<!-- 自定义js -->
<script src="${staticPath}/common/js/content.js?v=1.0.0"></script>
</html>